<?php
defined ( 'IN_TS' ) or die ( 'Access Denied.' );

// 用户是否登录
$userid = aac ( 'user' )->isLogin ();

if ($userid == 0) {
    tsNotice('请登录后再操作');
}

$cardid = intval($_GET['cardid']);

$first = intval($_GET['first']);

$strCard = aac('user')->find('user_card',array('cardid'=>$cardid));

if($userid!=$strCard['userid']&&$userid!=$strCard['touserid']){
    tsNotice('没有操作权限！');
}


$strCard['user'] = aac('user')->find('user_info',array('userid'=>$strCard['userid']));
$strCard['touser'] = aac('user')->find('user_info',array('userid'=>$strCard['touserid']));

include template("card");